package com.njlime.cms.repository.sys;

import com.njlime.cms.entities.Community;
import com.njlime.core.helper.PageBean;
import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.data.jpa.repository.JpaSpecificationExecutor;

/**
 * Created by Dean on 2017-7-27.
 */
public interface CommunityDao extends JpaRepository<Community, Integer>,JpaSpecificationExecutor<Community> {
    int editCommunity(Community info);
    int del(int id);
    int toggleComment(int id);
    PageBean list(PageBean pageBean, Community info, boolean is_all);
    int updateReading(int id);
    void updateCommentNum(Integer id, Integer num);
}
